package org.mifos.boss.domainmodel;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class ClientNameDetails {

//	private String 	tempCustId;
	private int nameDetailsId;
	private short nameType;
	private int salutation;
	private String firstname;
	private String middlename;
	private String lastname;
	private String secondLastname;
	
	private ClientCreationalData clientCreationalData;
	
//	@Id
//	public String getTempCustId() {
//		return tempCustId;
//	}
//	public void setTempCustId(String tempCustId) {
//		this.tempCustId = tempCustId;
//	}
	public short getNameType() {
		return nameType;
	}
	public void setNameType(short nameType) {
		this.nameType = nameType;
	}
	public int getSalutation() {
		return salutation;
	}
	public void setSalutation(int salutation) {
		this.salutation = salutation;
	}
	public String getFirstname() {
		return firstname;
	}
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	public String getMiddlename() {
		return middlename;
	}
	public void setMiddlename(String middlename) {
		this.middlename = middlename;
	}
	public String getLastname() {
		return lastname;
	}
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	public String getSecondLastname() {
		return secondLastname;
	}
	public void setSecondLastname(String secondLastname) {
		this.secondLastname = secondLastname;
	}
	
	
	@ManyToOne
	@JoinColumn(name="TEMP_CUST_ID")
	public ClientCreationalData getClientCreationalData() {
		return clientCreationalData;
	}
	public void setClientCreationalData(ClientCreationalData clientCreationalData) {
		this.clientCreationalData = clientCreationalData;
	}
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getNameDetailsId() {
		return nameDetailsId;
	}
	public void setNameDetailsId(int nameDetailsId) {
		this.nameDetailsId = nameDetailsId;
	}
	
	
	
}
